### 算术运算符 | 比较运算符 | 逻辑运算符 | 位运算符 | 转义字符
# 算术运算符
print(1 + 1)  # 2
print(1 - 1)  # 0
print(2 * 4)  # 8
print(12 / 5)  # 2.4
print(12 // 5)  # 2 整除
print(12 % 5)  # 2 整除 余数
print(2**5)  # 32 乘方
print("----------------------------------")

# 比较运算符
print(1 > 2)  # False
print(1 < 2)  # True
print(1 >= 2)  # False
print(1 <= 2)  # True
print(1 == 2)  # False
print(1 != 2)  # True
print("----------------------------------")

# 逻辑运算符
print(True and False)  # False
print(True or False)  # True
print(not True)  # False
print("----------------------------------")

# 位运算符
print(4 & 8)  # 0
print(4 | 8)  # 12
print(4 ^ 8)  # 12
print(~4)  # -5
print(4 << 2)  # 16
print(4 >> 2)  # 1

print("----------------------------------")
print(1 / 1)  # 一定是浮点型
print(5 / 2)  # 2.5
print(5 // 2)  # 2
print(5 % 2)  # 1
print(5**2)  # 25
print(5.0 // 2)  # 2.0
print(5.0 % 2)  # 1.0

print("--------------Input--------------------")
name = input("Please input name: ")
print(name)

print("--------------转义字符--------------------")
print("leslie\t is me")  # \t 表示制表符
print("leslie\n is me")  # \n 表示换行符
print("leslie\\ is me")  # \ 表示反斜杠
print("leslie' is me")  # \' 表示单引号
print('leslie" is me')  # \" 表示双引号
print("leslie\r is me")  # move the cursor to the beginning of the line
print("leslie\b is me")  # \b 表示退格符
print("leslie\f is me")  # \f 表示换页符
print("leslie\v is me")  # \v 表示垂直制表符
print("LESLIE\a is me")  # \a 表示响铃符
print("leslie\0 is me")  # \0 表示空字符
print("leslie\x00 is me")  # \x00 表示空字符
